home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / Bowers Development / AppMaker 2.0b5 / Examples / ODF / AMSample / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-06-03  |  3.5 KB  |  131 lines  |  [TEXT/CWIE]

  1. //========================================================================================
  2. //
  3. //    File:                Frame.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FRAME_H
  11. #define FRAME_H
  12.  
  13. // ----- Framework Includes -----
  14.  
  15. #ifndef FWFRAME_H
  16. #include "FWFrame.h"
  17. #endif
  18.  
  19. #ifndef FWDRGDRP_H
  20. #include "FWDrgDrp.h"
  21. #endif
  22.  
  23. // ----- Foundation Layer -----
  24.  
  25. #ifndef FWRECEVR_H
  26. #include "FWRecevr.h"
  27. #endif
  28.  
  29. // ----- shapes -----
  30.  
  31. //========================================================================================
  32. // Forward Declarations
  33. //========================================================================================
  34.  
  35. class FW_CMenuEvent;
  36.  
  37. class CAMSamplePart;
  38. class CAMSampleContent;
  39.  
  40. class FW_CStaticText;
  41. class FW_CStaticText;
  42. class FW_CButton;
  43. class FW_CButton;
  44. class CRectView;
  45. class CPictView;
  46. class FW_CListBox;
  47. class FW_CRadioCluster;
  48. class FW_CGroupBox;
  49. class FW_CButton;
  50. class FW_CEditView;
  51. class FW_CStaticText;
  52. class FW_CStaticText;
  53.  
  54. //========================================================================================
  55. // CAMSampleFrame
  56. //========================================================================================
  57.  
  58. class CAMSampleFrame : public FW_CFrame, public FW_MReceiver, public FW_MDraggableFrame, public FW_MDroppableFrame
  59. {
  60. //----------------------------------------------------------------------------------------
  61. //    Initialization/Destruction
  62. //
  63.   public:
  64.       FW_DECLARE_CLASS
  65.     FW_DECLARE_AUTO(CAMSampleFrame)
  66.  
  67.     CAMSampleFrame(Environment* ev, 
  68.                 ODFrame* odFrame, 
  69.                 FW_CPresentation* presentation, 
  70.                 CAMSampleContent* content);
  71.  
  72.     virtual ~CAMSampleFrame();
  73.  
  74. //----------------------------------------------------------------------------------------
  75. //    Inherited API
  76. //
  77.     virtual ODDragResult CanAcceptDrop(Environment* ev, ODDragItemIterator* dragInfo);
  78.  
  79.     virtual FW_Boolean    DoAdjustMenus(Environment* ev,
  80.                                       FW_CMenuBar* menuBar, 
  81.                                       FW_Boolean hasMenuFocus,
  82.                                       FW_Boolean isRoot);
  83.  
  84.     virtual FW_Boolean    DoMenu(Environment* ev,
  85.                                const FW_CMenuEvent& theMenuEvent);
  86.  
  87.     virtual FW_Boolean    DoMouseDown(Environment* ev, const FW_CMouseEvent& theMouseEvent);
  88.  
  89.     virtual void        Draw(Environment *ev, 
  90.                              ODFacet* odFacet, 
  91.                              ODShape* invalidShape);
  92.  
  93.     virtual void        FrameShapeChanged(Environment* ev);
  94.     virtual void        CreateSubViews(Environment* ev);
  95.  
  96.     virtual FW_CDragCommand* NewDragCommand(Environment *ev,
  97.                                             FW_CFrame* theFrame,
  98.                                             const FW_CMouseEvent& theMouseEvent);
  99.     virtual FW_CDropCommand* NewDropCommand(Environment *ev,
  100.                                             FW_CFrame* frame,
  101.                                             ODDragItemIterator* dropInfo, 
  102.                                             ODFacet* odFacet, 
  103.                                             const FW_CPoint& dropPoint);
  104.  
  105.     virtual FW_CClipboardCommand* NewClipboardCommand(Environment* ev, ODCommandID commandID);
  106.  
  107.     // ----- FW_MReceiver overrides ----- 
  108.     virtual void         HandleNotification(Environment* ev, const FW_CNotification& notification);
  109.  
  110. //----------------------------------------------------------------------------------------
  111. //    Data Members
  112. //
  113.   private:
  114.     CAMSampleContent*         fAMSampleContent;
  115.  
  116.     // subviews
  117.     FW_CStaticText*        fHeadlineText;
  118.     FW_CStaticText*        fTaglineText;
  119.     FW_CButton*     fCreatesViewsCheck;
  120.     FW_CButton*     fGeneratesCodeCheck;
  121.     CRectView*        fPictRect;
  122.     CPictView*        fBowersPict;
  123.     FW_CListBox*     fGadgetsList;
  124.     FW_CRadioCluster*    fGenerateGroup;
  125.     FW_CEditView*     fWwwAddressField;
  126.     FW_CStaticText*        fFootnote1Text;
  127.     FW_CStaticText*        fFootnote2Text;
  128. };
  129.  
  130. #endif
  131.